package com.lyw.factory;

import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

/**
 * 定时任务工厂
 *
 * @author lyw
 * @Date 2023/2/16-下午6:00
 */
public interface TimerTaskFactory {

    ScheduledFuture<?> createTimerTask(Runnable timerTask, final long delay, final long step, final TimeUnit unit);

    void execute(Runnable runnable);
}
